Xbasic
IS_RECNO_IN Function
Syntax
Result_Flag as L = IS_RECNO_IN(C record_number_list)
Arguments
- record_number_list
A space delimited list of record numbers.
Description
Returns TRUE if record number is in list of record numbers provided.
Discussion
IS_RECNO_IN() returns .T. if the current record number is in the list of records, Record_List. Typically Record_List is generated by the <INDEX>.RECNO_LIST_GET()method. This function is primarily used in Alpha Anywhere's "Top n Records" and "Top n% Records" queries.
Example
The following is an Interactive Window session. IS_RECNO_IN() operates on the primary table of the session. Since the default primary table of the Interactive Window is the system A_Launch table, we first rest the primary table.
tbl = table.reset("customer") tbl.fetch_goto(5) ? is_recno_in("3 4 5 6") -> .T. tbl.fetch_goto(10) ? is_recno_in("3 4 5 6") -> .F.
See Also